#include "TCA9539.h"
#include <rtthread.h> 
void TCA9539_init(void)
{
	;
}
void TCA9539_cmd(uint8_t cmd, uint8_t data)
{
	I2C_Write_data(I2C1_UNIT,0x74,cmd,&data,1);
}
void TCA9539_CFG(uint8_t cfg0,uint8_t cfg1)
{
	TCA9539_cmd(CMDCFG0,cfg0);
	rt_thread_delay(10);
	TCA9539_cmd(CMDCFG1,cfg1);
    rt_thread_delay(10);
}
void ledcontrol(uint8_t ledstatus)
{
	TCA9539_cmd(CMDOUTPUT1,ledstatus);
}